﻿using Seggu.Daos.Interfaces;
using Seggu.Data;
using System;
using System.Linq;
using System.Collections.Generic;
using System.Transactions;

namespace Seggu.Daos
{
    public class ProducerCodeDao: GenericDao<ProducerCode>, IProducerCodeDao
    {
        public override void Save(ProducerCode obj)
        {
            using (var scope = new TransactionScope())
            {
                Set.Add(obj);
                container.SaveChanges();
                scope.Complete();
            }
        }
    }
}
